<?php 
    header("Content-type: text/html; charset=utf-8");
    require_once('auth_i.inc.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
    <title>Управление сценариями</title>
    <?php
        require_once('headers.inc.php');
    ?>
    <script src="events.js" type="text/javascript"></script>
</head>
<body>
<?php // menu bar
    require_once('menu.inc.php');

    print menu($menu_items, 'events.php');
?>

<div id="event-form" title="Новый сценарий">
    <form id="event-form-1">

        <table id="event-form-table">

         <tr id="first-line">
          <td id="label">
            <label for="name">Название сценария</label>
          </td>
          <td id="data">  
            <input type="text" name="name" value="" id="name" class="FormElement ui-widget-content ui-corner-all" />
          </td>
         </tr>

         <tr id="last-line">
          <td id="label">
            <label for="name">Действия</label>
          </td>
          <td id="data">  
            <table id="act-grid"></table>
          </td>
         </tr>

         </table>
    </form>
</div>

<div id="right-info" >
    <button id="add-button">Добавить</button>
    <button id="edit-button">Редактировать</button>
    <button id="remove-button">Удалить</button>
</div>

<div id="content" style="bottom:0">

<input type="hidden" name="cid" value="">

<table id="list"></table> 
</div>


</body>
</html>
